/*
 * @(#) DecisionState
 *
 * <br> Copyright:  Copyright (c) 2017
 * <br> @author caijinhuang
 * <br> 2017-12-18 15:57:49
 */

package com.sunsharing.sharemeeting.entity;

public class DecisionState {
    private String priorityId;

    private String priorityName;

    public String getPriorityId() {
        return priorityId;
    }

    public void setPriorityId(String priorityId) {
        this.priorityId = priorityId == null ? null : priorityId.trim();
    }

    public String getPriorityName() {
        return priorityName;
    }

    public void setPriorityName(String priorityName) {
        this.priorityName = priorityName == null ? null : priorityName.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DecisionState other = (DecisionState) that;
        return (this.getPriorityId() == null ? other.getPriorityId() == null : this.getPriorityId().equals(other.getPriorityId()))
            && (this.getPriorityName() == null ? other.getPriorityName() == null : this.getPriorityName().equals(other.getPriorityName()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getPriorityId() == null) ? 0 : getPriorityId().hashCode());
        result = prime * result + ((getPriorityName() == null) ? 0 : getPriorityName().hashCode());
        return result;
    }
}